package com.guigu.yh.springcloud.service.fallbackImpl;

import com.guigu.yh.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * 付款 应急服务实现
 * 如果利用 openFeign 请求的远程服务宕机，会执行此类中的应急方法（与原来的方法一一对应）
 *
 * @author zyh
 * @version 1.0.0
 * @date 2022/09/01
 */
@Component
public class PaymentFallbckServiceImpl implements PaymentService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "------- PaymentFallbckServiceImpl fallback  paymentInfo_OK 降级 ,o(╥﹏╥)o ";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "------- PaymentFallbckServiceImpl fallback  paymentInfo_TimeOut 降级 ,o(╥﹏╥)o ";
    }

    @Override
    public String paymentInfo_Err(Integer id) {
        return "------- PaymentFallbckServiceImpl fallback  paymentInfo_Err 降级 ,o(╥﹏╥)o ";
    }
}
